﻿namespace Core.Ndatax.Infrastructure.Entitys
{
    public class LogUploadRes
    {
        public string ID { get; set; }
        public string SheetID { get; set; }
        public string SendBody { get; set; }
        public string ResponseBody { get; set; }
        public string SendTo { get; set; }
        public string SendTime { get; set; }
        public int SendStatus { get; set; } = 0;
        public int SendCount { get; set; } = 0;

        public void SetResult(string msg)
        {
            ResponseBody = msg;
            SendStatus = msg == "发送成功" ? 1 : 0;
            SendCount++;
            SendTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
    }
}
